﻿using System.Collections;
using System.Collections.Generic;
using System.Data;
using PMS.IRepository;
using PMS.IServices;
using PMS.Models.Base;
using PMS.Repository;

namespace PMS.Services
{
    public class BaseService<T> where T : class, new()
    {

        //public List<T> GetList(Hashtable ht)
        //{
        //    string strSql = "Select * from " + typeof(T).Name;
        //}

        //public List<T> GetList(Hashtable ht, IDbTransaction tran)
        //{
        //    throw new System.NotImplementedException();
        //}

        //public List<T> GetList(Hashtable ht, IDbTransaction tran, int commandTime)
        //{
        //    throw new System.NotImplementedException();
        //}

        //public List<T> GetList(Hashtable ht, IDbTransaction tran, int commandTime, CommandType commandType)
        //{
        //    throw new System.NotImplementedException();
        //}

        ///// <summary>
        ///// 获取where条件
        ///// </summary>
        ///// <param name="ht"></param>
        ///// <returns></returns>
        //public string GetStrWhere(Hashtable ht)
        //{
        //    string strWhere = " Where 1=1 ";
        //    foreach (var htKey in ht.Keys)
        //    {
        //        strWhere +=" And "+
        //    }
        //}

        ///// <summary>
        ///// 获取Param参数
        ///// </summary>
        ///// <param name="ht"></param>
        ///// <returns></returns>
        //public Dictionary<string, object> GetParam(Hashtable ht)
        //{

        //}
    }
}
